package com.foryou.wechat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.foryou.wechat.common.enums.ImageTypeEnum;
import com.foryou.wechat.entity.UserImageEntity;
import com.foryou.wechat.utils.Response;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by Lee.
 */
public interface UserImageService extends IService<UserImageEntity>{


    /**
     * <h2>上传图片文件</h2>
     * @param businessId
     * @param files
     * @param imageTypeEnum
     * @return
     */
    boolean userUploadFiles(Long businessId,MultipartFile[] files, ImageTypeEnum imageTypeEnum)
            throws Exception;

    /**
     * <h2>查询图片地址集合</h2>
     * @param businessId
     * @param imageTypeEnum
     * @return
     */
    List<String> imageUrlList(Long businessId, ImageTypeEnum imageTypeEnum);

    /**
     * <h2>作品文件上传</h2>
     * @param businessId
     * @param files
     * @return
     */
    Response uploadForWorks(Long businessId, MultipartFile[] files) throws Exception;

    /**
     * <h2>约拍文件上传</h2>
     * @param businessId
     * @param files
     * @return
     */
    Response uploadForShoot(Long businessId, MultipartFile[] files) throws Exception;

    /**
     * <h2>场地文件上传</h2>
     * @param businessId
     * @param files
     * @return
     */
    Response uploadForFiled(Long businessId, MultipartFile[] files) throws Exception;
}
